const { resolve } = require('path');

const entry = {
  index: {
    import: resolve(__dirname, 'src/entry/index.js'),
  },
  // second: {
  //   import: resolve(__dirname, 'src/entry/second.js'),
  // },
};

const output = {
  path: resolve(__dirname, 'build'),
  filename: '[name].js',
  clean: true,
  assetModuleFilename: 'assets/[name][ext]',
};

const optimization = {
  splitChunks: {
    chunks: 'all',
  },
}

module.exports = {
  entry,
  output,
  mode: 'development',
  optimization,
};
